package com.example.blog.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * name: 东北宋小宝
 * date: 2020/8/13
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Blog {

    private Long id;
    private String title;
    private String content;
    private String description;
    private String firstPicture;
    private String flag;
    private Integer views;
    private Boolean apperciation;
    private Boolean shareStatement;
    private Boolean commentabled;
    private Boolean published;
    private Boolean recommend;
    private Date creatTime;
    private Date updateTime;
    private Type type;
    private Integer typeId;
    private User user;
    private Long userId;
    private List<Comment> comments = new ArrayList<>();
}
